package com.google.code.syncgear.util;

import javax.cache.Cache;

import com.google.code.syncgear.core.Environment;

public final class CacheUtil {
	
	private static Cache cache;
	
	static {
		if(cache == null)
			cache = Environment.getCache();
	}

	@SuppressWarnings("unchecked")
	public static void put(String key, Object value) {
		cache.put(key, value);
	}
	
	public static Object get(String key) {
		return cache.get(key);
	}
}
